~:extend('user')~
	~[left]~



	    <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header">Youwebapp</li>
              <li><a href="~~:url('user')~"><i class="icon-th-list"></i> 主页</a></li>
              <li><a href="~~:url('add')~"><i class="icon-plus"></i> 添加</a></li>
              <li><a href="~~:url('edit')~"><i class="icon-pencil"></i> 编辑</a></li>

              <li class="nav-header"> USER</li>
              <li class="active"><a href="~~:url('config')~"><i class="icon-user"></i> 用户</a></li>
              <li><a href="~~:url('logout')~"><i class="icon-off"></i> 登出</a></li>

            </ul>
          </div><!--/.well -->
        </div><!--/span-->
	~[/left]~

	~[right]~

        <div class="span9">
          <div class="hero-unit" style="padding:20px;">

             <!-- change the username -->
            
          	<form name="myform_one" action="~~:url(:escape($page.path))~" method="post">
              <p>用户名设定：</p>
              <div class="input-prepend">
                <span class="add-on">用户名：</span>
                ~~Morrow\Formhtml::getElement('myform_one', 'username', array("class"=> "text", "value"=>:escape($data.username)));~ 
              </div>
              <label class="error">~~Morrow\Formhtml::getError('myform_one', 'username');~ </label>
              <br/>
              <button class="btn btn-success" type="submit">提交</button>
              </form>

              <!-- change the password -->

              <form name="myform_two" action="~~:url(:escape($page.path))~" method="post">
              <p>修改密码：</p>
              <div class="input-prepend">
                <span class="add-on">旧的密码：</span>
                ~~Morrow\Formhtml::getElement('myform_two', 'oldpassword', array("class"=> "text","dtype"=>"password"));~ 
              </div>
               <label class="error">~~Morrow\Formhtml::getError('myform_two', 'oldpassword');~ </label>


              <div class="input-prepend">
                <span class="add-on">新的密码：</span>
                ~~Morrow\Formhtml::getElement('myform_two', 'password', array("class"=> "text","dtype"=>"password"));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">确定密码：</span>
                ~~Morrow\Formhtml::getElement('myform_two', 'password2', array("class"=> "text","dtype"=>"password"));~ 
              </div>
              <label class="error">~~Morrow\Formhtml::getError('myform_two', 'password');~ </label>
              <br/>
          		<button class="btn btn-success" type="submit">提交</button>
          	</form>

            <!-- change the contact data -->

              <form name="myform_three" action="~~:url(:escape($page.path))~" method="post">
              <p>联系方式：</p>
              <div class="input-prepend">
                <span class="add-on">姓名：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'name', array("class"=> "text", "value"=>:escape($data.name)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">机构：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'org', array("class"=> "text", "value"=>:escape($data.org)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">邮件：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'cardemail', array("class"=> "text", "value"=>:escape($data.cardemail)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">电话：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'tel', array("class"=> "text", "value"=>:escape($data.tel)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">手机：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'mobile', array("class"=> "text", "value"=>:escape($data.mobile)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">地址：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'adresse', array("class"=> "text", "value"=>:escape($data.adresse)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">邮编：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'zip', array("class"=> "text", "value"=>:escape($data.zip)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">城市：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'city', array("class"=> "text", "value"=>:escape($data.city)));~ 
              </div>

              <div class="input-prepend">
                <span class="add-on">国家：</span>
                ~~Morrow\Formhtml::getElement('myform_three', 'country', array("class"=> "text", "value"=>:escape($data.country)));~ 
              </div>

              <br/>
              <button class="btn btn-success" type="submit">提交</button>
            </form>    


          </div>
   
        
        </div><!--/span-->
	~[/right]~